<template>
    <fieldset>
        <legend>
            <h2>child1组件</h2>
        </legend>
        <h2>{{c1Msg}}</h2>
        <h2>{{whh}}</h2>
        <button @click="btnClick1">点击</button>
    </fieldset>
</template>

<script>
    export default {
        name: "Child1",
        data: function () {
            return {
                c1Msg: "hello child1"
            }
        },
        methods: {
            btnClick1() {
                alert(123);
            }
        },
        props:["whh"]
    }
</script>

<style scoped>

</style>